package com.aiyige.model.request;

public class RequestThirdOauthBackup {
    private String accessToken;//6_QgzJzdWOi6wBF7_60FjV7EdCtb_bbW5qMUYvbrLqBZpUMHwFCC1hpZhCEv9Dj3oSTKHyBgvONVOUlUCw3iGXe9pCGgshXsmUzqgfBsWquFs,
    private String accessTokenExpire;//0,
    private String avatar;//http;////thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqd8q3j0eDD7TYn6hKx3Ob9eWg0ZIYn2iaicBlfSxRnHF8qicMpYlZCOdEuLZPRia7qI3XTpiatb8Om6icQ/132,
    private String nickName;//6aOO6Zuo,
    private String openid;//12321,
    private String refreshToken;//,
    private String refreshTokenExpire;//0,
    private String source;//weixin,
    private String uid;//21321,
    private String unionid;//

    public RequestThirdOauthBackup() {
    }

    private RequestThirdOauthBackup(Builder builder) {
        setAccessToken(builder.accessToken);
        setAccessTokenExpire(builder.accessTokenExpire);
        setAvatar(builder.avatar);
        setNickName(builder.nickName);
        setOpenid(builder.openid);
        setRefreshToken(builder.refreshToken);
        setRefreshTokenExpire(builder.refreshTokenExpire);
        setSource(builder.source);
        setUid(builder.uid);
        setUnionid(builder.unionid);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getAccessTokenExpire() {
        return accessTokenExpire;
    }

    public void setAccessTokenExpire(String accessTokenExpire) {
        this.accessTokenExpire = accessTokenExpire;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getRefreshTokenExpire() {
        return refreshTokenExpire;
    }

    public void setRefreshTokenExpire(String refreshTokenExpire) {
        this.refreshTokenExpire = refreshTokenExpire;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public static final class Builder {
        private String accessToken;
        private String accessTokenExpire;
        private String avatar;
        private String nickName;
        private String openid;
        private String refreshToken;
        private String refreshTokenExpire;
        private String source;
        private String uid;
        private String unionid;

        private Builder() {
        }

        public Builder accessToken(String val) {
            accessToken = val;
            return this;
        }

        public Builder accessTokenExpire(String val) {
            accessTokenExpire = val;
            return this;
        }

        public Builder avatar(String val) {
            avatar = val;
            return this;
        }

        public Builder nickName(String val) {
            nickName = val;
            return this;
        }

        public Builder openid(String val) {
            openid = val;
            return this;
        }

        public Builder refreshToken(String val) {
            refreshToken = val;
            return this;
        }

        public Builder refreshTokenExpire(String val) {
            refreshTokenExpire = val;
            return this;
        }

        public Builder source(String val) {
            source = val;
            return this;
        }

        public Builder uid(String val) {
            uid = val;
            return this;
        }

        public Builder unionid(String val) {
            unionid = val;
            return this;
        }

        public RequestThirdOauthBackup build() {
            return new RequestThirdOauthBackup(this);
        }
    }
}
